Missed backtick fix
authorIan Connolly <iconnolly@mozilla.com>
Thu, 13 Nov 2014 19:12:08 +0000 (19:12 +0000)
committerIan Connolly <ian@connolly.io>
Fri, 14 Nov 2014 09:57:01 +0000 (09:57 +0000)
src/bin/cargo.rs
tests/test_cargo.rs

index 28a0addc685ce91b9516d9e3e7bf3434fc5a9825..baeb90db301de80b68f6acb771e85d37477b5f2c 100644 (file)
@@ -154,7 +154,7 @@ fn execute_subcommand(cmd: &str, args: &[String], shell: &mut MultiShell) {
         Some(command) => command,
         None => {
             let msg = match find_closest(cmd) {
-                Some(closest) => format!("No such subcommand\n\n\tDid you mean ``{}''?\n", closest),
+                Some(closest) => format!("No such subcommand\n\n\tDid you mean `{}`?\n", closest),
                 None => "No such subcommand".to_string()
             };
             return handle_error(CliError::new(msg, 127), shell)
index d70948ccb7d0bc2e089b8ae0ecbd9fdc7ad47c6c..c2794ff803fbdb6818412f771fcf69b36181b703 100644 (file)
@@ -55,7 +55,7 @@ test!(find_closest_biuld_to_build {
                 execs().with_status(127)
                        .with_stderr("No such subcommand
 
-Did you mean ``build''?
+Did you mean `build`?
 
 "));
 })
@@ -71,4 +71,3 @@ test!(find_closest_dont_correct_nonsense {
                        .with_stderr("No such subcommand
 "));
 })
-